<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDomainTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('domain', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('uid')->default('')->comment('用户');
            $table->string('domain')->default('');
            $table->string('status')->default('')->comment('状态 1正常2暂停3未解析');
            $table->integer('share')->default('0')->comment('0不共享1共享');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('domain');
    }
}
